package com.bcinfo.iccard.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bcinfo.iccard.model.RechargeablecardExpensiveRecordTemp;

public interface RechargeablecardExpensiveRecordTempMapper
{
    int deleteByPrimaryKey(Long rechargeablecardExpensiveTempId);

    int insert(RechargeablecardExpensiveRecordTemp record);

    int insertSelective(RechargeablecardExpensiveRecordTemp record);

    RechargeablecardExpensiveRecordTemp selectByPrimaryKey(Long rechargeablecardExpensiveTempId);

    int updateByPrimaryKeySelective(RechargeablecardExpensiveRecordTemp record);

    int updateByPrimaryKey(RechargeablecardExpensiveRecordTemp record);

    int feedBackMoney(@Param("merchantCode") String merchantCode, @Param("posCode") String posCode,
            @Param("rechargeablecardExpensiveTempId") long rechargeablecardExpensiveTempId);

    int setExceptionStatus(@Param("merchantCode") String merchantCode, @Param("posCode") String posCode,
            @Param("rechargeablecardExpensiveTempId") long rechargeablecardExpensiveTempId);

    RechargeablecardExpensiveRecordTemp loadBySerialNum(String serialNum);

    int revocate(String serialNum);

    List<RechargeablecardExpensiveRecordTemp> selectByMerchant(@Param("merchantCode") String sellerCode,
            @Param("serialNo") String serialNo, @Param("cardNo") String cardNo, @Param("beginTime") String beginTime,
            @Param("endTime") String endTime, @Param("firstIndex") int i, @Param("maxRows") int pageSize);

    int getLastSelectTotalNum();
}